package xml;
import java.io.*;

public class DocumentXML {
	
	public TagXML radacina=null;
	public static boolean hasInstance=false;
	public File f=null;
	public DocumentXML instance=null;
	
	public DocumentXML(TagXML rad,String filename){
		
		if(hasInstance==false){
			this.f=new File(filename);
			this.radacina=rad;
			hasInstance=true;
			this.instance=this;
		}
		else
			System.out.println("Documentul a fost instantiat");
	}
	
	public TagXML getRadacina() {
		return radacina;
	}
	
	public DocumentXML getInstance() {
		return instance;
	}
	
	public void setRadacina(TagXML radacina) {
		this.radacina = radacina;
	}
	
	public void setXMLFile(String filename){
		File ff=new File(filename);
		this.f=ff;
	}
	
	public File getXMLFile(){
		return f;
	}
	
	public void acceptVisitor(XMLVisitor v){
		
	}
	
	
	
	
	
	

}
